﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using Entidades1;

/// <summary>
/// clase que implementa la interfaz de administrador
/// </summary>
namespace SisVetDAO
{
    public interface IAdaministradorDAO
    {
        /// <summary>
        /// Conectars this instance.
        /// </summary>
        void conectar();
        /// <summary>
        /// Desconectars this instance.
        /// </summary>
        void desconectar();
        /// <summary>
        /// Sets the conexion.
        /// </summary>
        /// <param name="conexion">The conexion.</param>
        void setConexion(IDbConnection conexion);
        /// <summary>
        /// Insertars the specified ad.
        /// </summary>
        /// <param name="ad">The ad.</param>
        void insertar(Administrador ad);
        /// <summary>
        /// Actualizars the specified ad.
        /// </summary>
        /// <param name="ad">The ad.</param>
        void actualizar(Administrador ad);
        /// <summary>
        /// Todoses this instance.
        /// </summary>
        /// <returns></returns>
        List<Administrador> Todos();
    }
}
